#include <cstdio>

int main( )
{
    int t, n, cas = 1;
    __int64 a, b, t1, t2, ans;
    bool flag;
    scanf("%d", &t);
    while ( t-- )
    {
        scanf("%d%I64d%I64d", &n, &a, &b);
        flag = true;
        while ( n-- )
        {
            scanf("%I64d", &t1);
            if ( flag )
            {
                ans = a + b;
                flag = false;
            }
            else
            {
                if ( a * 2 > ( t1 - t2 - 1 ) * b )
                    ans += ( t1 - t2 - 1 ) * b + b;
                else
                    ans += a * 2 + b;
            }
            t2 = t1;
        }
        ans += a;
        printf("Case #%d: %I64d\n", cas++, ans);
    }
    return 0;
}
